﻿using System.Data.Entity;
using System.Linq;
using Fan.LichTrucTiep.Repository.Entity;
using Ndex.Core.Data;
using Fan.LichTrucTiep.Repository;

namespace SGI.LitePortal.Repository
{
    public class DBContext : BaseRepository
    {
        public DBContext() : base("LitePortalConnection") { }

        #region DBSets
        public DbSet<Country> Countries { get; set; }
        #endregion
        
        #region Country Queries

        public IQueryable<Country> GetCountries()
        {
            return Get<Country>();
        }
        #endregion
    }
}
